package com.yu.service.impl;

import com.yu.dao.UserDao;
import com.yu.service.UserService;

public class UserServiceImpl implements UserService {
    private UserDao userDao;
    private int num;

    public UserServiceImpl() {
    }

    public UserServiceImpl(UserDao userDao, int num){
        this.userDao= userDao;
        this.num=num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public void setUserDao(UserDao userDao) {
        this.userDao = userDao;
    }

    public void save() {
        System.out.println(" user service running ..." + num);

    }
}
